Class: Google::Apis::SearchconsoleV1::ApiDataRow

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchconsole_v1/classes.rb,
lib/google/apis/searchconsole_v1/representations.rb,
lib/google/apis/searchconsole_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApiDataRow

Returns a new instance of ApiDataRow.



145
146
147
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 145

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#clicksFloat

Corresponds to the JSON property clicks

Returns:

  • (Float)


123
124
125
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 123

def clicks
  @clicks
end

#ctrFloat

Corresponds to the JSON property ctr

Returns:

  • (Float)


128
129
130
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 128

def ctr
  @ctr
end

#impressionsFloat

Corresponds to the JSON property impressions

Returns:

  • (Float)


133
134
135
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 133

def impressions
  @impressions
end

#keysArray<String>

Corresponds to the JSON property keys

Returns:

  • (Array<String>)


138
139
140
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 138

def keys
  @keys
end

#positionFloat

Corresponds to the JSON property position

Returns:

  • (Float)


143
144
145
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 143

def position
  @position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



150
151
152
153
154
155
156
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 150

def update!(**args)
  @clicks = args[:clicks] if args.key?(:clicks)
  @ctr = args[:ctr] if args.key?(:ctr)
  @impressions = args[:impressions] if args.key?(:impressions)
  @keys = args[:keys] if args.key?(:keys)
  @position = args[:position] if args.key?(:position)
end