Class: Tweetkit::Response::Tweets::Tweet::Annotations::Entity::Urls::Url
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Tweet::Annotations::Entity::Urls::Url
- Defined in:
- lib/tweetkit/response.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#display_url ⇒ Object
Returns the value of attribute display_url.
-
#end ⇒ Object
Returns the value of attribute end.
-
#expanded_url ⇒ Object
Returns the value of attribute expanded_url.
-
#start ⇒ Object
Returns the value of attribute start.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
-
#unwound_url ⇒ Object
Returns the value of attribute unwound_url.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Url
constructor
A new instance of Url.
Constructor Details
#initialize(url) ⇒ Url
Returns a new instance of Url.
346 347 348 349 350 351 352 353 354 355 356 |
# File 'lib/tweetkit/response.rb', line 346 def initialize(url) @description = url['description'] @display_url = url['display_url'] @end = url['end'] @expanded_url = url['expanded_url'] @start = url['start'] @status = url['status'] @title = url['title'] @url = url['url'] @unwound_url = url['unwound_url'] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
344 345 346 |
# File 'lib/tweetkit/response.rb', line 344 def description @description end |
#display_url ⇒ Object
Returns the value of attribute display_url.
344 345 346 |
# File 'lib/tweetkit/response.rb', line 344 def display_url @display_url end |
#end ⇒ Object
Returns the value of attribute end.
344 345 346 |
# File 'lib/tweetkit/response.rb', line 344 def end @end end |
#expanded_url ⇒ Object
Returns the value of attribute expanded_url.
344 345 346 |
# File 'lib/tweetkit/response.rb', line 344 def @expanded_url end |
#start ⇒ Object
Returns the value of attribute start.
344 345 346 |
# File 'lib/tweetkit/response.rb', line 344 def start @start end |
#status ⇒ Object
Returns the value of attribute status.
344 345 346 |
# File 'lib/tweetkit/response.rb', line 344 def status @status end |
#title ⇒ Object
Returns the value of attribute title.
344 345 346 |
# File 'lib/tweetkit/response.rb', line 344 def title @title end |
#unwound_url ⇒ Object
Returns the value of attribute unwound_url.
344 345 346 |
# File 'lib/tweetkit/response.rb', line 344 def unwound_url @unwound_url end |
#url ⇒ Object
Returns the value of attribute url.
344 345 346 |
# File 'lib/tweetkit/response.rb', line 344 def url @url end |