Class: Bitly::API::Bitlink::LinkClick::List
- Defined in:
- lib/bitly/api/bitlink/link_click.rb
Instance Attribute Summary collapse
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
-
#unit_reference ⇒ Object
readonly
Returns the value of attribute unit_reference.
-
#units ⇒ Object
readonly
Returns the value of attribute units.
Attributes inherited from List
Instance Method Summary collapse
-
#initialize(items:, response:, units:, unit_reference:, unit:) ⇒ List
constructor
A new instance of List.
Methods inherited from List
Constructor Details
#initialize(items:, response:, units:, unit_reference:, unit:) ⇒ List
Returns a new instance of List.
15 16 17 18 19 20 |
# File 'lib/bitly/api/bitlink/link_click.rb', line 15 def initialize(items:, response:, units:, unit_reference:, unit:) super(items: items, response: response) @units = units @unit_reference = Time.parse(unit_reference) if unit_reference @unit = unit end |
Instance Attribute Details
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
14 15 16 |
# File 'lib/bitly/api/bitlink/link_click.rb', line 14 def unit @unit end |
#unit_reference ⇒ Object (readonly)
Returns the value of attribute unit_reference.
14 15 16 |
# File 'lib/bitly/api/bitlink/link_click.rb', line 14 def unit_reference @unit_reference end |
#units ⇒ Object (readonly)
Returns the value of attribute units.
14 15 16 |
# File 'lib/bitly/api/bitlink/link_click.rb', line 14 def units @units end |