Class: Xclient::Client
- Inherits:
-
Object
- Object
- Xclient::Client
- Defined in:
- lib/xclient/client.rb
Instance Attribute Summary collapse
-
#embed ⇒ Object
Returns the value of attribute embed.
-
#host ⇒ Object
Returns the value of attribute host.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#thumbs ⇒ Object
Returns the value of attribute thumbs.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(params = {}) ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 |
# File 'lib/xclient/client.rb', line 5 def initialize(params = {}) params.each do |key, value| self.send("#{key}=", value) end end |
Instance Attribute Details
#embed ⇒ Object
Returns the value of attribute embed.
3 4 5 |
# File 'lib/xclient/client.rb', line 3 def @embed end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/xclient/client.rb', line 3 def host @host end |
#tags ⇒ Object
Returns the value of attribute tags.
3 4 5 |
# File 'lib/xclient/client.rb', line 3 def @tags end |
#thumbs ⇒ Object
Returns the value of attribute thumbs.
3 4 5 |
# File 'lib/xclient/client.rb', line 3 def thumbs @thumbs end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/xclient/client.rb', line 3 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/xclient/client.rb', line 3 def url @url end |