Class: Bitly::V4::Bitlink
- Inherits:
-
Object
- Object
- Bitly::V4::Bitlink
- Defined in:
- lib/bitly/v4/bitlink.rb
Overview
Bitlink.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#long_url ⇒ Object
Returns the value of attribute long_url.
-
#short_url ⇒ Object
Returns the value of attribute short_url.
Instance Method Summary collapse
-
#initialize(data) ⇒ Bitlink
constructor
A new instance of Bitlink.
Constructor Details
#initialize(data) ⇒ Bitlink
Returns a new instance of Bitlink.
9 10 11 12 13 |
# File 'lib/bitly/v4/bitlink.rb', line 9 def initialize(data) @id = data[:id] @short_url = data[:link] @long_url = data[:long_url] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/bitly/v4/bitlink.rb', line 7 def id @id end |
#long_url ⇒ Object
Returns the value of attribute long_url.
7 8 9 |
# File 'lib/bitly/v4/bitlink.rb', line 7 def long_url @long_url end |
#short_url ⇒ Object
Returns the value of attribute short_url.
7 8 9 |
# File 'lib/bitly/v4/bitlink.rb', line 7 def short_url @short_url end |