Class: PostProxy::Media

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

Constructor Details

#initialize(**attrs) ⇒ Media

Returns a new instance of Media.



104
105
106
107
108
109
# File 'lib/postproxy/types.rb', line 104

def initialize(**attrs)
  @error_message = nil
  @source_url = nil
  @url = nil
  super
end

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def content_type
  @content_type
end

#error_messageObject

Returns the value of attribute error_message.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def error_message
  @error_message
end

#idObject

Returns the value of attribute id.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def id
  @id
end

#source_urlObject

Returns the value of attribute source_url.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def source_url
  @source_url
end

#statusObject

Returns the value of attribute status.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def status
  @status
end

#urlObject

Returns the value of attribute url.



102
103
104
# File 'lib/postproxy/types.rb', line 102

def url
  @url
end