Class: ChatWork::Entity
- Inherits:
-
Object
- Object
- ChatWork::Entity
- Extended by:
- Operations
- Defined in:
- lib/chatwork/entity.rb
Constant Summary
Constants included from Operations
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Attributes included from Operations
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Entity
constructor
A new instance of Entity.
Methods included from Operations
define_create, define_get, install_class_operations
Constructor Details
#initialize(attributes) ⇒ Entity
Returns a new instance of Entity.
15 16 17 |
# File 'lib/chatwork/entity.rb', line 15 def initialize(attributes) @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
13 14 15 |
# File 'lib/chatwork/entity.rb', line 13 def attributes @attributes end |
Class Method Details
.convert(hash) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/chatwork/entity.rb', line 5 def convert(hash) # not implement #converter = ResponseConverter.new #converter.convert(hash) return hash end |