Class: TweetUrl::Base
- Inherits:
-
Object
- Object
- TweetUrl::Base
- Defined in:
- lib/tweet_url.rb
Instance Attribute Summary collapse
-
#parser ⇒ Object
Returns the value of attribute parser.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, opts = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Status
Methods included from 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
#parser ⇒ Object
Returns the value of attribute parser.
21 22 23 |
# File 'lib/tweet_url.rb', line 21 def parser @parser end |
#url ⇒ Object
Returns the value of attribute url.
21 22 23 |
# File 'lib/tweet_url.rb', line 21 def url @url end |