Class: Ayadn::PostAnnotationObject
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PostAnnotationObject
constructor
A new instance of PostAnnotationObject.
Constructor Details
#initialize(hash) ⇒ PostAnnotationObject
Returns a new instance of PostAnnotationObject.
77 78 79 80 81 |
# File 'lib/ayadn/post_object.rb', line 77 def initialize hash @input = hash @type = @input["type"] @value = @input["value"] end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
75 76 77 |
# File 'lib/ayadn/post_object.rb', line 75 def input @input end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
75 76 77 |
# File 'lib/ayadn/post_object.rb', line 75 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
75 76 77 |
# File 'lib/ayadn/post_object.rb', line 75 def value @value end |