Class: Bitly::API::Bitlink::LinkClick::List

Inherits:
List
  • Object
show all
Defined in:
lib/bitly/api/bitlink/link_click.rb

Instance Attribute Summary collapse

Attributes inherited from List

#response

Instance Method Summary collapse

Methods inherited from List

#each

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

#unitObject (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_referenceObject (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

#unitsObject (readonly)

Returns the value of attribute units.



14
15
16
# File 'lib/bitly/api/bitlink/link_click.rb', line 14

def units
  @units
end