Class: Bskyrb::AppBskyRichtextFacet::ByteSlice

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#byteEndObject

Returns the value of attribute byteEnd.



940
941
942
# File 'lib/bskyrb/generated_classes.rb', line 940

def byteEnd
  @byteEnd
end

#byteStartObject

Returns the value of attribute byteStart.



938
939
940
# File 'lib/bskyrb/generated_classes.rb', line 938

def byteStart
  @byteStart
end

Class Method Details

.from_hash(hash) ⇒ Object



942
943
944
945
946
947
948
949
950
951
# File 'lib/bskyrb/generated_classes.rb', line 942

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

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

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

  instance
end