Class: Bskyrb::ComAtprotoSyncSubscriberepos::RepoOp

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action.



2066
2067
2068
# File 'lib/bskyrb/generated_classes.rb', line 2066

def action
  @action
end

#cidObject

Returns the value of attribute cid.



2070
2071
2072
# File 'lib/bskyrb/generated_classes.rb', line 2070

def cid
  @cid
end

#pathObject

Returns the value of attribute path.



2068
2069
2070
# File 'lib/bskyrb/generated_classes.rb', line 2068

def path
  @path
end

Class Method Details

.from_hash(hash) ⇒ Object



2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
# File 'lib/bskyrb/generated_classes.rb', line 2072

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

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

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

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

  instance
end