Class: Tweetkit::Response::Tweets::Tweet::Annotations::Entity::Urls::Url

Inherits:
Object
  • Object
show all
Defined in:
lib/tweetkit/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



344
345
346
# File 'lib/tweetkit/response.rb', line 344

def description
  @description
end

#display_urlObject

Returns the value of attribute display_url.



344
345
346
# File 'lib/tweetkit/response.rb', line 344

def display_url
  @display_url
end

#endObject

Returns the value of attribute end.



344
345
346
# File 'lib/tweetkit/response.rb', line 344

def end
  @end
end

#expanded_urlObject

Returns the value of attribute expanded_url.



344
345
346
# File 'lib/tweetkit/response.rb', line 344

def expanded_url
  @expanded_url
end

#startObject

Returns the value of attribute start.



344
345
346
# File 'lib/tweetkit/response.rb', line 344

def start
  @start
end

#statusObject

Returns the value of attribute status.



344
345
346
# File 'lib/tweetkit/response.rb', line 344

def status
  @status
end

#titleObject

Returns the value of attribute title.



344
345
346
# File 'lib/tweetkit/response.rb', line 344

def title
  @title
end

#unwound_urlObject

Returns the value of attribute unwound_url.



344
345
346
# File 'lib/tweetkit/response.rb', line 344

def unwound_url
  @unwound_url
end

#urlObject

Returns the value of attribute url.



344
345
346
# File 'lib/tweetkit/response.rb', line 344

def url
  @url
end