Module: ApiTwister::InstanceMethods

Defined in:
lib/api-twister/api_twister.rb

Instance Method Summary collapse

Instance Method Details

#api_hash(name, options = {}) ⇒ Object



102
103
104
# File 'lib/api-twister/api_twister.rb', line 102

def api_hash(name, options={})
  self.class.api_hash name, options
end

#to_api_json(name, options = {}) ⇒ Object



110
111
112
# File 'lib/api-twister/api_twister.rb', line 110

def to_api_json(name, options={})
  to_json(api_hash(name, options))
end

#to_api_xml(name, options = {}) ⇒ Object



106
107
108
# File 'lib/api-twister/api_twister.rb', line 106

def to_api_xml(name, options={})
  to_xml(api_hash(name, options))
end