Module: ActiveRemote::Typecasting::ClassMethods
- Defined in:
- lib/active_remote/typecasting.rb
Instance Method Summary collapse
Instance Method Details
#_attribute_type(attribute_name) ⇒ Object
46 47 48 |
# File 'lib/active_remote/typecasting.rb', line 46 def _attribute_type(attribute_name) attributes[attribute_name][:type] || Object end |
#inspect ⇒ Object
40 41 42 43 44 |
# File 'lib/active_remote/typecasting.rb', line 40 def inspect inspected_attributes = attribute_names.sort.map { |name| "#{name}: #{_attribute_type(name)}" } attributes_list = "(#{inspected_attributes.join(", ")})" unless inspected_attributes.empty? "#{name}#{attributes_list}" end |