Module: ActiveRemote::Typecasting::ClassMethods
- Defined in:
- lib/active_remote/typecasting.rb
Instance Method Summary collapse
Instance Method Details
#_attribute_type(attribute_name) ⇒ Object
55 56 57 |
# File 'lib/active_remote/typecasting.rb', line 55 def _attribute_type(attribute_name) attributes[attribute_name][:type] || Object end |
#inspect ⇒ Object
49 50 51 52 53 |
# File 'lib/active_remote/typecasting.rb', line 49 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 |