Class: OData::Type
- Inherits:
-
Object
- Object
- OData::Type
- Defined in:
- lib/odata/type.rb
Direct Known Subclasses
CollectionType, ComplexType, EntityType, EnumType, PrimitiveType
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #coerce(value) ⇒ Object
- #collection? ⇒ Boolean
-
#initialize(options = {}) ⇒ Type
constructor
A new instance of Type.
Constructor Details
#initialize(options = {}) ⇒ Type
Returns a new instance of Type.
5 6 7 |
# File 'lib/odata/type.rb', line 5 def initialize( = {}) @name = [:name] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/odata/type.rb', line 3 def name @name end |
Instance Method Details
#coerce(value) ⇒ Object
9 10 11 |
# File 'lib/odata/type.rb', line 9 def coerce(value) value end |
#collection? ⇒ Boolean
13 14 15 |
# File 'lib/odata/type.rb', line 13 def collection? false end |