Module: ApiTwister::InstanceMethods
- Defined in:
- lib/api-twister/api_twister.rb
Instance Method Summary collapse
- #api_hash(name, options = {}) ⇒ Object
- #to_api_json(name, options = {}) ⇒ Object
- #to_api_xml(name, options = {}) ⇒ Object
Instance Method Details
#api_hash(name, options = {}) ⇒ Object
102 103 104 |
# File 'lib/api-twister/api_twister.rb', line 102 def api_hash(name, ={}) self.class.api_hash name, end |
#to_api_json(name, options = {}) ⇒ Object
110 111 112 |
# File 'lib/api-twister/api_twister.rb', line 110 def to_api_json(name, ={}) to_json(api_hash(name, )) end |
#to_api_xml(name, options = {}) ⇒ Object
106 107 108 |
# File 'lib/api-twister/api_twister.rb', line 106 def to_api_xml(name, ={}) to_xml(api_hash(name, )) end |