Class: Bskyrb::AppBskyFeedPost::TextSlice

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#endObject

Returns the value of attribute end.



714
715
716
# File 'lib/bskyrb/generated_classes.rb', line 714

def end
  @end
end

#startObject

Returns the value of attribute start.



712
713
714
# File 'lib/bskyrb/generated_classes.rb', line 712

def start
  @start
end

Class Method Details

.from_hash(hash) ⇒ Object



716
717
718
719
720
721
722
723
724
725
# File 'lib/bskyrb/generated_classes.rb', line 716

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:start=, hash["start"])

  instance.send(:end=, hash["end"])

  instance
end