Class: Ayadn::PostMentionObject
Instance Attribute Summary collapse
-
#amended_len ⇒ Object
readonly
Returns the value of attribute amended_len.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#is_leading ⇒ Object
readonly
Returns the value of attribute is_leading.
-
#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) ⇒ PostMentionObject
constructor
A new instance of PostMentionObject.
Constructor Details
#initialize(hash) ⇒ PostMentionObject
Returns a new instance of PostMentionObject.
34 35 36 37 38 39 40 41 42 |
# File 'lib/ayadn/post_object.rb', line 34 def initialize hash @input = hash @is_leading = @input["is_leading"] @pos = @input["pos"] @id = @input["id"] @len = @input["len"] @name = @input["name"] @amended_len = @input["amended_len"] end |
Instance Attribute Details
#amended_len ⇒ Object (readonly)
Returns the value of attribute amended_len.
32 33 34 |
# File 'lib/ayadn/post_object.rb', line 32 def amended_len @amended_len end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
32 33 34 |
# File 'lib/ayadn/post_object.rb', line 32 def id @id end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
32 33 34 |
# File 'lib/ayadn/post_object.rb', line 32 def input @input end |
#is_leading ⇒ Object (readonly)
Returns the value of attribute is_leading.
32 33 34 |
# File 'lib/ayadn/post_object.rb', line 32 def is_leading @is_leading end |
#len ⇒ Object (readonly)
Returns the value of attribute len.
32 33 34 |
# File 'lib/ayadn/post_object.rb', line 32 def len @len end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
32 33 34 |
# File 'lib/ayadn/post_object.rb', line 32 def name @name end |
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
32 33 34 |
# File 'lib/ayadn/post_object.rb', line 32 def pos @pos end |