Class: Ayadn::PostAnnotationObject

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/post_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#inputObject (readonly)

Returns the value of attribute input.



75
76
77
# File 'lib/ayadn/post_object.rb', line 75

def input
  @input
end

#typeObject (readonly)

Returns the value of attribute type.



75
76
77
# File 'lib/ayadn/post_object.rb', line 75

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



75
76
77
# File 'lib/ayadn/post_object.rb', line 75

def value
  @value
end