Class: Ayadn::PostHashtagObject
Instance Attribute Summary collapse
-
#amended_len ⇒ Object
readonly
Returns the value of attribute amended_len.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#len ⇒ Object
readonly
Returns the value of attribute len.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PostHashtagObject
constructor
A new instance of PostHashtagObject.
Constructor Details
#initialize(hash) ⇒ PostHashtagObject
Returns a new instance of PostHashtagObject.
49 50 51 52 53 54 55 |
# File 'lib/ayadn/post_object.rb', line 49 def initialize hash @input = hash @name = @input["name"] @len = @input["len"] @pos = @input["pos"] @amended_len = @input["amended_len"] end |
Instance Attribute Details
#amended_len ⇒ Object (readonly)
Returns the value of attribute amended_len.
47 48 49 |
# File 'lib/ayadn/post_object.rb', line 47 def amended_len @amended_len end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
47 48 49 |
# File 'lib/ayadn/post_object.rb', line 47 def input @input end |
#len ⇒ Object (readonly)
Returns the value of attribute len.
47 48 49 |
# File 'lib/ayadn/post_object.rb', line 47 def len @len end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
47 48 49 |
# File 'lib/ayadn/post_object.rb', line 47 def name @name end |
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
47 48 49 |
# File 'lib/ayadn/post_object.rb', line 47 def pos @pos end |