Method: Ayadn::PostLinkObject#initialize
- Defined in:
- lib/ayadn/post_object.rb
#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 |