Class: Xclient::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/xclient/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#embedObject

Returns the value of attribute embed.



3
4
5
# File 'lib/xclient/client.rb', line 3

def embed
  @embed
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/xclient/client.rb', line 3

def host
  @host
end

#tagsObject

Returns the value of attribute tags.



3
4
5
# File 'lib/xclient/client.rb', line 3

def tags
  @tags
end

#thumbsObject

Returns the value of attribute thumbs.



3
4
5
# File 'lib/xclient/client.rb', line 3

def thumbs
  @thumbs
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/xclient/client.rb', line 3

def title
  @title
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/xclient/client.rb', line 3

def url
  @url
end