Class: Ayadn::PostLinkObject
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.
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PostLinkObject
constructor
A new instance of PostLinkObject.
Constructor Details
#initialize(hash) ⇒ PostLinkObject
Returns a new instance of PostLinkObject.
20 21 22 23 24 25 26 27 |
# File 'lib/ayadn/post_object.rb', line 20 def initialize hash @input = hash @url = @input["url"] @text = @input["text"] @pos = @input["pos"] @len = @input["len"] @amended_len = @input["amended_len"] end |
Instance Attribute Details
#amended_len ⇒ Object (readonly)
Returns the value of attribute amended_len.
18 19 20 |
# File 'lib/ayadn/post_object.rb', line 18 def amended_len @amended_len end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
18 19 20 |
# File 'lib/ayadn/post_object.rb', line 18 def input @input end |
#len ⇒ Object (readonly)
Returns the value of attribute len.
18 19 20 |
# File 'lib/ayadn/post_object.rb', line 18 def len @len end |
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
18 19 20 |
# File 'lib/ayadn/post_object.rb', line 18 def pos @pos end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
18 19 20 |
# File 'lib/ayadn/post_object.rb', line 18 def text @text end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
18 19 20 |
# File 'lib/ayadn/post_object.rb', line 18 def url @url end |