Class: Google::Apis::SearchconsoleV1::ApiDataRow
- Inherits:
-
Object
- Object
- Google::Apis::SearchconsoleV1::ApiDataRow
- 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
-
#clicks ⇒ Float
Corresponds to the JSON property
clicks
. -
#ctr ⇒ Float
Corresponds to the JSON property
ctr
. -
#impressions ⇒ Float
Corresponds to the JSON property
impressions
. -
#keys ⇒ Array<String>
Corresponds to the JSON property
keys
. -
#position ⇒ Float
Corresponds to the JSON property
position
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApiDataRow
constructor
A new instance of ApiDataRow.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#clicks ⇒ Float
Corresponds to the JSON property clicks
123 124 125 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 123 def clicks @clicks end |
#ctr ⇒ Float
Corresponds to the JSON property ctr
128 129 130 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 128 def ctr @ctr end |
#impressions ⇒ Float
Corresponds to the JSON property impressions
133 134 135 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 133 def impressions @impressions end |
#keys ⇒ Array<String>
Corresponds to the JSON property keys
138 139 140 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 138 def keys @keys end |
#position ⇒ Float
Corresponds to the JSON property position
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 |