Class: Kloxo::API::Resource
- Defined in:
- lib/kloxo/api/resource.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Resource
constructor
A new instance of Resource.
- #param ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ Resource
Returns a new instance of Resource.
6 7 8 |
# File 'lib/kloxo/api/resource.rb', line 6 def initialize params = {} self.type = params[:type] end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/kloxo/api/resource.rb', line 4 def type @type end |
Instance Method Details
#param ⇒ Object
10 11 12 13 14 15 |
# File 'lib/kloxo/api/resource.rb', line 10 def param { "action" => "simplelist", "resource" => self.type }.to_param end |