Class: TweetUrl::Base

Inherits:
Object
  • Object
show all
Includes:
Status, Username
Defined in:
lib/tweet_url.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Status

status_id, #status_id

Methods included from Username

username, #username

Constructor Details

#initialize(url, opts = {}) ⇒ Base

Returns a new instance of Base.



22
23
24
25
# File 'lib/tweet_url.rb', line 22

def initialize(url, opts = {})
  @url = url
  @parser = opts.has_key?(:parser) ? opts[:parser] : DEFAULT_PARSER
end

Instance Attribute Details

#parserObject

Returns the value of attribute parser.



21
22
23
# File 'lib/tweet_url.rb', line 21

def parser
  @parser
end

#urlObject

Returns the value of attribute url.



21
22
23
# File 'lib/tweet_url.rb', line 21

def url
  @url
end